#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
	double a =123.456, b =3.14159, c =-31.467;
	cout<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setprecision(2);
	cout<<setw(10)<<a<<endl;
	cout<<setw(10)<<b<<endl;
    cout<<setw(10)<<c<<endl;
    return 0;
}
